
<!DOCTYPE html>
<html> 
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>8300</title>
	</head> 
  <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<div id="content"></div>
<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>Marked in the browser</title>
</head>

<body>
<div id="content"></div>

<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<script>
        var reader = new FileReader();
        reader.readAsText("test.txt", "UTF-8");
            var content = e.target.result;
            console.log(content);
            const textAreaVal = document.getElementById('content').value;
            document.getElementById('content').value = textAreaVal + content;

</script>
</body>
</html>

<!--
  <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
    <script>
$(function(){
        $.ajax({
            type:"get",
            url:"./test.md",
            dataType:"html",
            success:function(res){
            $("#content").append(marked(res));  // 使用marked插件解析.md文件
            }
        })
    })
    </script>
<div id="content"></div>
-->
</html>

